﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/PBOAMasterPage.master" AutoEventWireup="true" CodeFile="employee.aspx.cs" Inherits="PersonnelManagementPage_employee" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link type="text/css" rel="Stylesheet" href="../css/HR.css" />
    <title>员工管理</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <uc:Navigator ID="Navigator1" Text="员工管理" runat="server" />
<div style="float:right;margin-right:30px;">
<asp:Button ID="btnAdd" runat="server" Text="添加员工" CssClass="ButtonImage" 
        onclick="btnAdd_Click" /><br />
</div>
<div id="Main">
    <asp:GridView ID="gvEmployee" runat="server" CssClass="GridView" 
        CellPadding="4" ForeColor="#333333" GridLines="None" 
        AutoGenerateColumns="False" Width="640px" AllowPaging="True" 
        onrowediting="gvEmployee_RowEditing" >
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="UserNo" HeaderText="员工编号" >
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="UserName" HeaderText="姓名" >
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="DepId" HeaderText="部门" >
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="PosId" HeaderText="岗位" >
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:ButtonField ButtonType="Image" HeaderText="修改" CommandName="Edit"   
                ImageUrl="~/Images/edit.gif" Text="按钮">
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:ButtonField>
            <asp:TemplateField HeaderText="状态">
            <ItemTemplate>
            <asp:RadioButtonList ID="rbtnlGender" runat="server" 
                                RepeatDirection="Horizontal">
                               <asp:ListItem Text="启用" Value="True" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="禁用" Value="False"></asp:ListItem>
                            </asp:RadioButtonList>
            </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
</div>
    <div style="height:100px;"></div>
</asp:Content>

